package com.mt.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mt.dto.ModifyPasswordRequest;
import com.mt.pojo.User;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author Wang
 * @since 2020-11-12
 */
public interface UserService extends IService<User> {
    String login(User user);

    String messageLogin(String phone, String code);

    boolean sendMessage(String phone);

    Boolean addUser(User user);

    String AuthUser(String token, String type, String url, String aclCode);

    User getUserInfo(String userId);

    User getUserDetailInfo(String userId);

    User modifyUser(User user);

    User modifyUserPassword(ModifyPasswordRequest request);

    IPage<User> listUserInfo(Integer page, Integer pageSize, String key);

    Boolean deleteUser(String userId);


}
